package pl.com.ozzy.ozsign.tools;

import android.content.Context;
import android.media.MediaScannerConnection;
import android.media.MediaScannerConnection.MediaScannerConnectionClient;
import android.net.Uri;
import android.os.Environment;

public class SigmatureMediaScanner implements MediaScannerConnectionClient {

	private MediaScannerConnection mConnection;
	
	public SigmatureMediaScanner(Context ctx) {
		mConnection = new MediaScannerConnection(ctx, this);
	}
	
	@Override
	public void onMediaScannerConnected() {
		mConnection.scanFile(Environment.getExternalStorageDirectory().getAbsolutePath(), null);
	}

	@Override
	public void onScanCompleted(String arg0, Uri arg1) {
		
	}

}
